using UnityEngine;
using UnityEngine.UI;

[RequireComponent(typeof(Text))]
public class VersionTextBehaviour : MonoBehaviour
{
    [SerializeField]
    private string m_format;
    [SerializeField]
    private bool m_includeVersionCode = true;
    private Text m_text;
    void Start()
    {
        m_text = GetComponent<Text>();
        if (m_text)
        {
            m_text.text = string.Format(m_format,GameConfig.GetVersionText(m_includeVersionCode));
        }

    }
}
